package de.tabuma.shopping;

/**
 *
 * @author $Author: alefen $
 * @version $Revision: 1.1.1.1.4.1 $
 * @since $Date: 2010/01/13 10:22:52 $
 */
public class constants {
    public static final int XFORM_CREATION_LICENSE_TYP = 1;
    public static final int SOAP_CALL_LICENSE_TYP = 2;

    public static char tokenChars[] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','0','1','2','3','4','5','6','7','8','9'};

    public static final int STATE_PAYED_CANCELED = 4;
    public static final int STATE_CANCELED = 3;
    public static final int STATE_PAYED = 2;
    public static final int STATE_OPEN = 1;

    public static final int ORDERNAV_NULL = 0;
    public static final int ORDERNAV_LICENSEOVERVIEW = 1;
    public static final int ORDERNAV_DESCRIPTION = 2;
    public static final int ORDERNAV_PACKAGE = 3;
    public static final int ORDERNAV_LICENSEAGREEMENT = 4;
    public static final int ORDERNAV_DETAILS = 5;
    public static final int ORDERNAV_ERRORPAYMENT = 6;
    public static final int ORDERNAV_VERIFICATIONPAYMENT = 7;
    public static final int ORDERNAV_FORWARDPAYPAL = 8;

    public static final String ORDER_STARTPAYPAL = "startpaypal";
    public static final String ORDER_NR = "orderNr";
    public static final String ORDER_TOKEN = "orderToken";
    public static final String ORDER = "order";
    public static final String ORDER_LIST = "orderList";
    public static final String ORDER_LICENSEPACKAGES = "orderLicensepackages";
    public static final String ORDER_LICENSEPACKAGERELATION_LIST = "orderLicensepackageRelationList";
    public static final String ORDER_LICENSE_TYPE_LIST = "orderLicenseTypeList";
    public static final String ORDER_LICENSE_TYPE_NR = "orderLicenseTypeNr";
    public static final String ORDER_LICENSE_ASSIGNED_LICENSE = "orderLicenseTypeAssignedLicense";
    public static final String ORDER_LICENSE_ASSIGNMENT_LIST = "orderLicenseAssignmentList";

    public static final String ORDER_LICENSE_RELATION_LIST = "orderLicenseRelationList";
    public static final String ORDER_LICENSE_ASSIGNMENT_CLASS = "orderLicenseAssignmentClass";
    public static final String ORDER_LICENSE_ASSIGNMENT_FIELD_KEY = "orderLicenseAssignmentFieldKey";
    public static final String ORDER_LICENSE_ASSIGNMENT_FIELD_SHOW = "orderLicenseAssignmentFieldShow";
    public static final String ORDER_LICENSE_ASSIGNMENT_OBJECT_LIST = "orderLicenseAssignmentObjectList";
    public static final String ORDER_LICENSE_ASSIGNMENT_OBJECTNAME = "orderLicenseAssignmentObjectName";
    public static final String ORDER_LICENSE_ASSIGNMENT_ID = "orderLicenseAssignmentId";
    public static final String ORDER_LICENSE_ASSIGNMENT_ADD = "orderLicenseAssignmentAdd";
    public static final String ORDER_LICENSE_ASSIGNMENT_ADD_ID = "orderLicenseAssignmentAddId";
    public static final String ORDER_LICENSE_ASSIGNMENT_COUNT = "orderLicenseAssignmentCount";
    public static final String ORDER_LICENSE_ASSIGNMENT_UNUSED_LICENSES_HASH = "orderLicenseAssignmentUnusedLicenseHash";
    public static final String ORDER_LICENSE_ASSIGNMENT_USED_LICENSES_OVERVIEW = "orderLicenseAssignmentUsedLicensesOverview";
    public static final String ORDER_LICENSE_ASSIGNMENT_USED_LICENSES_LIST = "orderLicenseAssignmentUsedLicenesList";
    public static final String ORDER_LICENSE_ASSIGNMENT_METHOD_LIST = "orderLicenseAssignmentMethodList";
    public static final String ORDER_LICENSE_ASSIGNMENT_REMOVE = "orderLicenseAssignmentRemove";

    public static final String ORDER_LICENSE_USED_LICENSE = "orderLicenseTypeUsedLicense";
    public static final String URL = "url";
    public static final String ORDER_CURRENT_LICENSEPACKAGE_LIST = "currentLicensePackageList";
    public static final String ORDER_ALL_LICENSEPACKAGE_LIST = "currentLicensePackageList";
    public static final String ORDER_CURRENT = "currentOrder";

    public static final String ORDER_CURRENT_LICENSEPACKAGERELATION_LIST = "currentOrderLicensePackageRelation";

    public static final double vat = 19.0;
    public static final String projectLanguageBundle = "de/tabuma/wsdl2xform/languages";
    public static final boolean testEnvironment = true;

    protected final static String payPalAuthentificationLiveURL = "https://api-3t.paypal.com/nvp";
    protected final static String payPalAuthentificationTestURL = "https://api-3t.sandbox.paypal.com/nvp";
    public final static String payPalAuthentificationURL = (testEnvironment ? payPalAuthentificationTestURL : payPalAuthentificationLiveURL);

    protected final static String payPalLiveURL = "";
    protected final static String payPalTestURL = "https://www.sandbox.paypal.com/cgi-bin/webscr";
    public final static String payPalUrl = (testEnvironment ? payPalTestURL : payPalLiveURL);

    protected final static String payPalLiveUser = "seller_1246907533_biz_api1.alfenory.de";

    protected final static String payPalTestUser = "seller_1246907533_biz_api1.alfenory.de";
    public final static String payPalUser = (testEnvironment ? payPalTestUser : payPalLiveUser);

    protected final static String payPalLivePassword = "";
    protected final static String payPalTestPassword = "Y7FZCJ2BKN7DFPSJ";
    public final static String payPalPassword = (testEnvironment ? payPalTestPassword : payPalLivePassword);

    protected final static String payPalLiveSignature = "";
    protected final static String payPalTestSignature = "AFcWxV21C7fd0v3bYYYRCpSSRl31AYcB.KkqN1GRTtIDvVegyoVFJVtO";
    public final static String payPalSignature = (testEnvironment ? payPalTestSignature : payPalLiveSignature);

    protected final static String liveImageUrl = "https://www.wsdl2xform.com/grafiken/logo_version_1_0_web.png";
    protected final static String testImageUrl = "http://localhost:8080/grafiken/logo_version_1_0_web.png";
    public final static String imageUrl = (testEnvironment ? testImageUrl : liveImageUrl);

    public static String getValueFromProperties(String key) {
        return java.util.ResourceBundle.getBundle("de.tabuma.shopping.language").getString(key);
    }

    public static String getValueFromProperties(String propertieFileName,String key) {
        return java.util.ResourceBundle.getBundle(propertieFileName).getString(key);
    }
}
